package com.vcredit.creditcat.vo.payday;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class CommonRequest implements Serializable {

	private static final long serialVersionUID = 1L;

	private String sign_type;// 签名算法类型，目前支持RSA
	private String sign;// 合作方请求参数的签名串
	private String timestamp;//发送请求的时间，格式"yyyy-MM-dd HH:mm:ss"
	private Integer is_compress;//数据是否启用压缩 默认为0 0:不压缩 1:压缩
	private Integer is_encrypt;//是否需要加密 默认0不加密 1:加密
	private String encrypt_type;//数据加密方式 目前只支持RSA方式加密
	private Object biz_data;//业务数据

	public CommonRequest init() {
		this.setSign_type("RSA");
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
		this.setTimestamp(df.format(new Date()));
		this.setIs_compress(0);
		this.setIs_encrypt(1);
		this.setEncrypt_type("RSA");
		return this;
	}

	public String getSign_type() {
		return sign_type;
	}

	public void setSign_type(String sign_type) {
		this.sign_type = sign_type;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	public Integer getIs_compress() {
		return is_compress;
	}

	public void setIs_compress(Integer is_compress) {
		this.is_compress = is_compress;
	}

	public Integer getIs_encrypt() {
		return is_encrypt;
	}

	public void setIs_encrypt(Integer is_encrypt) {
		this.is_encrypt = is_encrypt;
	}

	public String getEncrypt_type() {
		return encrypt_type;
	}

	public void setEncrypt_type(String encrypt_type) {
		this.encrypt_type = encrypt_type;
	}

	public Object getBiz_data() {
		return biz_data;
	}

	public void setBiz_data(Object biz_data) {
		this.biz_data = biz_data;
	}

	public CommonRequest() {
	}

}
